package org.zxy.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    private String key;
    private Integer pageSize = 1;
    private Integer currentPage = 10;
    public int getStart() {
        return (this.currentPage - 1) * pageSize;
    }
}
